<?
class Unitprice_model extends Model{	
	function Unitprice_model(){
		parent::Model();		
	}	
	function get_content(){		
		$this->db->select('id,name');
		$this->db->order_by('sortorder');
		$res = $this->db->get('realestate_unitprice');		
		$list = array();	
		foreach($res->result() as $value){
			$list[$value->id] = $value->name;
		}			
		return $list;
	}	
}
/* End of file */